<?php

  /**
   * @package JooS
   * @subpackage PHPackager_Folders
   */
  require_once "JooS/PHPackager/Helper/Includepath.php";

  class JooS_PHPackager_Helper_Includepath_Unset extends JooS_PHPackager_Helper_Includepath {
    public function __invoke($path) {
      $folders = self::get_include_path();
      $key = array_search($path, $folders);

      if ($key !== null) {
        unset($folders[$key]);
        $this->set_include_path($folders);
      }
    }
  }
